import http from './http'

// 根据选中的id获取时间列表
const getCateTime = (id) => {
    return http.post(
        '/api/courseApi/getCateTime',
        {course_id:id},
        {headers:{act:'getVideoDetail'}}
    )
}

// 根据时间和分类 筛选内容
const getListByTime = (date,id,limit,page) => {
    return  http.post(
        '/api/CourseApi/getListByTime',
        {date ,course_id:id,limit,page},
        {headers:{act:'getVideoDetail'}}
    )
}

// 根据商品分类 筛选内容
const getGoodsListByTime = (date,id,limit,page) => {
    return  http.post(
        '/api/CourseApi/getGoodsListByTime',
        {date ,id,limit,page},
        {headers:{act:'getVideoDetail'}}
    )
}

// 获取商品时间列表
const getGoodsCateTime = (id) => {
    return http.post(
        '/api/CourseApi/getGoodsCateTime',
        {id},
        {headers:{act: 'getVideoDetail'}}
    )
}

export {
    getCateTime,
    getListByTime,
    getGoodsListByTime,
    getGoodsCateTime
}